package com.xyx.yfy_site_msg.system.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用于返回json 数据
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

	//业务响应码、响应信息
	private int code ;
	private String msg;

	//添加状态响应
	public static final ResultObj ADD_SUCCESS=new ResultObj(Constast.SUCCESS, "添加成功");
	public static final ResultObj ADD_ERROR=new ResultObj(Constast.ERROR, "添加失败");
	public static final ResultObj ADD_ERROR2=new ResultObj(Constast.ERROR, "添加失败【请检查客户名称是否重复，必填项是否填写】");

	//更新状态响应
	public static final ResultObj UPDATE_SUCCESS=new ResultObj(Constast.SUCCESS, "更新成功");
	public static final ResultObj UPDATE_ERROR=new ResultObj(Constast.ERROR, "更新失败【请检查必填项是否填写】");

	//删除状态响应
	public static final ResultObj DELETE_SUCCESS=new ResultObj(Constast.SUCCESS, "删除成功");
	public static final ResultObj DELETE_ERROR=new ResultObj(Constast.ERROR, "删除失败");

	//上传状态响应
	public static final ResultObj UPLOAD_SUCCESS=new ResultObj(Constast.SUCCESS, "上传成功");
	public static final ResultObj UPLOAD_ERROR=new ResultObj(Constast.ERROR, "上传失败");

}
